package com.dkd.day2025515;

public class Test {
    public static void main(String[] args) {
        try {
            //println后面会自动换行
            System.out.println("循环输出"+' ');
            int[] arr ={1,2,3,4,5,6,7,8,9,10};
            for (int i = 0; i < arr.length; i++) {
                System.out.print(arr[i] );
            }
            return;
        }finally {
            System.out.println("finally");
        }
    }
    //finally一定会执行，即使有return语句也会执行

}
